<script setup lang="ts">
import { onLaunch, onShow, onHide, onError } from "@dcloudio/uni-app";

onLaunch(() => {
  // console.log("App Launch");
});
onShow(() => {
  // console.log("App Show");
});
onHide(() => {
  // console.log("App Hide");
});
/** 全局错误监听 */
onError((err) => {
  // console.log("🚀 ~ file: App.vue:13 ~ onError ~ err:", err)
})

</script>

<style>
/* #ifdef MP-WEIXIN */
@import "./wxcomponents/dist/common/index.wxss";
@import "./common/common.css";
/* #endif */
/** 超过一行省略 */
.only-one-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/** 超过两行省略 */
.only-two-line {
  white-space: nowrap;
  overflow: hidden;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

/** 修改vant组件变量和主题色 */
:root:root {
  --van-primary-color: red;
}

</style>
